package cc.sjfx.sharedoc.widget.view;

import cc.sjfx.sharedoc.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class ButtonWithNumber extends RelativeLayout {
	private Context context;
	private TextView numText;

	public ButtonWithNumber(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
		this.context = context;
		LayoutInflater.from(context).inflate(R.layout.button_withnumber, this);
		numText = (TextView) findViewById(R.id.countText);
	}

	public void setCount(int count) {
		numText.setText(count + "");
	}
}
